<?php

class Like extends AppModel
{
    var $belongsTo = array("Track", "User");
    
    function getLikeCount($track_id)
    {
        return $this->findCount(array('track_id' => $track_id));
    }
}

?>